package cn.wolfcode.luowowo.scenic.service.impl;


import cn.wolfcode.luowowo.scenic.domain.ScenicCommentReply;
import cn.wolfcode.luowowo.scenic.mapper.ScenicCommentReplyMapper;
import cn.wolfcode.luowowo.scenic.service.IScenicCommentReplyService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class ScenicCommentReplyReplyServiceImpl implements IScenicCommentReplyService {
    @Autowired
    private ScenicCommentReplyMapper replyMapper;


    public void saveOrUpdate(ScenicCommentReply scenicCommentReply) {

        if (scenicCommentReply.getId() != null) {
            replyMapper.updateByPrimaryKey(scenicCommentReply);
        } else {
            replyMapper.insert(scenicCommentReply);
        }
    }
}
